//
//  BaseViewController.m
//  SunHouse
//
//  Created by dllo on 15/10/7.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "BaseViewController.h"
#import "SVProgressHUD.h"
@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self preferredStatusBarStyle];
    self.navigationController.navigationBarHidden = YES;

}
- (void)viewWillAppear:(BOOL)animated{

   [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
    //[self preferredStatusBarStyle];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}

-(void)viewWillDisappear:(BOOL)animated
{
    [SVProgressHUD dismiss];
}

- (BOOL)prefersStatusBarHidden
{
    return NO;
}
@end
